<script>
import { ref } from 'vue';
  export default {
    setup(){
      const num = ref(0)
      const numAdd = ()=>{
        num.value++
      }
      return{
        num,
        numAdd
      }
    }
  }
</script>

<template>
  <div>
    <h1>我是HomeView</h1>
    <div>{{ num }}</div>
    <button>点击{{ num }}</button>
  </div>
</template>
